﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Phone_Client.Commands_Utils;

namespace Phone_Client.ViewModels
{
    public class AuthenticationPageVM : IViewModelBase
    {
        #region Fields

        private String _email, _password;
        private ICommand _signincmd, _registercmd, _helpcmd;

        #endregion

        #region Properties

        public String Email
        {
            get { return _email; }
            set
            {
                if (_email == value) return;
                _email = value;
                RaisePropertyChanged("Email");
            }
        }

        public String Password
        {
            get { return _password; }
            set
            {
                if (_password == value) return;
                _password = value;
                RaisePropertyChanged("Password");
            }
        }

        #endregion

        #region Commands

        public ICommand SignInCmd
        {
            get { return _signincmd; }
        }

        public ICommand RegisterCmd
        {
            get { return _registercmd; }
        }

        public ICommand HelpCmd
        {
            get { return _helpcmd; }
        }

        #endregion

        #region Commands Functions

        public void SignInFunc()
        { }

        public void RegisterFunc()
        { }

        public void HelpFunc()
        { }

        #endregion

        #region Functions
        
        #endregion

        #region Ctor

        public AuthenticationPageVM()
        {
            _email = _password = String.Empty;
            _signincmd = new RelayCommand(SignInFunc) { IsEnabled = true };
            _registercmd = new RelayCommand(RegisterFunc) { IsEnabled = true };
            _helpcmd = new RelayCommand(HelpFunc) { IsEnabled = true };
        }

        #endregion
    }
}
